package servlce.impl;

import dao.ComputerRoomDao;
import dao.impl.ComputerroomDaoImpl;
import entity.ComputerRoom;
import servlce.ComputerRoomService;

import java.util.List;

public class ComputerRoomServiceImpl implements ComputerRoomService {
    ComputerRoomDao computerroomDao=new ComputerroomDaoImpl();
    @Override
    public List<ComputerRoom> list() {
        return computerroomDao.list();
    }

    @Override
    public int add(ComputerRoom computerroom) {
        return computerroomDao.add(computerroom);
    }

    @Override
    public int delete(int id) {
        return computerroomDao.delete(id);
    }
}
